package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fund")
public class FundController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/test/{id}")
    public String test(@PathVariable String id) {
        System.out.println("fund服务，当前服务地址:" + port);
        System.out.println("输入参数:" + id);
        System.out.println("--------------------");
        return "fund返回值：" + id;
    }
}
